<?php
include '../../public/index.php';
$data = json_decode(file_get_contents('php://input'), true);
if (empty($data)) {die(json_encode(array("code" => 1, "message" => "请传递参数")));}
$query = mysqli_query($connect, 'delete from app_info where id=' . $data["id"] . ';');
if(!$query){mysqli_close($connect);die(json_encode(array("code" => 500, "message" => "服务器异常")));}
die(json_encode(array("code" => 0,"message"=>"删除数据成功")));
